import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import errImgs from '../../style/imgs/404.png';
import { Button } from 'antd';
import Util from "../../utils/Util";
class Main extends Component {
    componentWillMount(){
        Util.setMenuOpenKey(this.props,"");
    }
    render() {
        return (
            <div className={"page-error"}>
                <div className={"item"}>
                    <img src={errImgs} alt="404" className={"img-404"} />
                </div>
                <div className={"item item2"}>
                    <h1>404</h1>
                    <p>抱歉，你访问的页面不存在</p>
                    <Link to={"/app/index"}><Button type={"primary"} size={"small"}>返回首页</Button></Link>
                </div>
            </div>
        )
    }
}

export default connect(state=>({
    User: state.User
}))(Main);
